package beautiful.butterfly.drds.datasource.connection_contexts.api;


import java.sql.SQLException;

public interface IConnectionContext {
    //
    public void close() throws SQLException;

    public boolean isClosed() throws SQLException;

    //
    public void setReadOnly(boolean readOnly) throws SQLException;

    public boolean isReadOnly() throws SQLException;

    public void setAutoCommit(boolean autoCommit) throws SQLException;

    public boolean getAutoCommit() throws SQLException;

    public void commit() throws SQLException;

    public void rollback() throws SQLException;
    //

    public ISql createSql() throws SQLException;

    public IParameterizedISql createParameterizedSql(String sql) throws SQLException;

    public IParameterizedISql createParameterizedSql(String sql, int x) throws SQLException;


}
